Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change session timeout values to use duration instead of number #52520

Merged
merged 10 commits into from
Dec 13, 2019

Conversation

jportner
Copy link
Contributor

@jportner jportner commented Dec 9, 2019

Small change based on feedback after #49855 was merged.

@jportner jportner force-pushed the session-config-duration branch 2 times, most recently from 700a8b6 to 92fdedc Compare December 9, 2019 18:47
Now these can be formatted in the config file as human-readable
strings.
@jportner jportner marked this pull request as ready for review December 9, 2019 20:54
@jportner jportner requested a review from a team as a code owner December 9, 2019 20:54
@jportner jportner assigned azasypkin and unassigned azasypkin Dec 9, 2019
@jportner jportner added the release_note:skip Skip the PR/issue when compiling release notes label Dec 9, 2019
@azasypkin
Copy link
Member

ACK: reviewing...

The plugin now uses Duration natively instead of converting these
values to numbers.
Also removed unused vars from legacyCompat.
Even though `session.lifespan` should be `null` by default, the
`session` object is undefined by default. When the config is parsed
we want to make sure that both `session.idleTimeout` and
`session.lifespan` are null by default.
Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a couple of nits.

x-pack/legacy/plugins/security/index.js Show resolved Hide resolved
docs/user/security/securing-kibana.asciidoc Show resolved Hide resolved
x-pack/plugins/security/server/config.ts Show resolved Hide resolved
x-pack/plugins/security/server/config.ts Outdated Show resolved Hide resolved
x-pack/plugins/security/server/config.ts Outdated Show resolved Hide resolved
@azasypkin azasypkin added chore Feature:Security/Authentication Platform Security - Authentication Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Dec 13, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

We had some unnecessary complexity in the config to satisfy test
mocks as they were written. Chagned the tests and simplified said
config.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported chore Feature:Security/Authentication Platform Security - Authentication release_note:skip Skip the PR/issue when compiling release notes Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants